<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>9-严格模式下构造函数</title>
</head>
<body>
    <script>
        "use strict";
        function Mobile(brand,price){
            console.log(this);
            this.brand = brand;
            this.price = price;
        }
        //Mobile('华为',1000);//Window
        //加了严格模式以后，没有实例化new ，此时呢this就是undefined
        var m = new Mobile('华为',1000);
        //此时的this就是Object { Mobile('华为',1000) }
    </script>
</body>
</html>